package com.boot.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.boot.entity.Concern;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface ConcernDao  extends BaseMapper<Concern> {

	/**
	 * 添加关注
	 * @param concern
	 * @return
	 */
	public int concernStoreDao(Concern concern);

	/**
	 * 获取关注
	 * @param concern
	 * @return
	 */
	public Concern getConcern(Concern concern);

	/**
	 * 取消关注
	 * @param concern
	 * @return
	 */
	public int removeConcern(Concern concern);

	/**
	 * 改变未读状态为已读
	 * @param concern
	 */
	public int changeReadedToOne(Concern concern);
	
}
